#!/usr/bin/env bash

sudo zypper mr -da

sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/distribution/leap/$releasever/repo/oss/' mirror-oss
sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/distribution/leap/$releasever/repo/non-oss/' mirror-non-oss
sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/update/leap/$releasever/oss/' mirror-update
sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/update/leap/$releasever/non-oss/' mirror-update-non-oss

sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/update/leap/$releasever/sle/' mirror-sle-update
sudo zypper ar -cfg 'https://mirrors.bfsu.edu.cn/opensuse/update/leap/$releasever/backports/' mirror-backports-update
sudo zypper ref
